﻿namespace com.savealot.Extensions.SharePointExtensions
{
    using Microsoft.SharePoint;

    public static class SPContextExtensions
    {
        #region Methods

        public static string GetListTitle( this SPContext spContext, string rootFolderName )
        {
            SPWeb spWeb = spContext.Web;
            return spWeb.Lists.GetListTitle( rootFolderName );
        }

        #endregion Methods
    }
}